<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js"></script>
</head>
<body>
<div id="app">{{msg}}</div>
<script>
	var app=new Vue({
		el:'#app',
		data:{
			msg:'你好啊'
		}
	});
	setTimeout(function(){
		app.$data.msg='写法1，匿名函数：function() {...}'
	}, 1000);
	setTimeout(()=>{
		app.$data.msg='写法2，键值对：( ) => {...}'
	}, 3000)
</script>
</html>